package com.game.element
{
	public class GunPack extends ItemElement
	{
		public function GunPack()
		{
			super();
			this.graphics.clear();
			this.graphics.beginFill(0xFFFF00,1);
			this.graphics.drawRect(-5,-5,10,10);
			this.graphics.endFill();
		}
		
		override public function useing(baseElement:BaseElement):Boolean{
			if(!baseElement is PlayerElement){
				return false;
			}
			var playerElement: PlayerElement = baseElement as PlayerElement
			playerElement.equipWeapon(new AK47);
			return true;
		}
	}
}